package com.jiaai.cloud.live.entity;

import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.jiaai.cloud.gift.entity.TLiveGiftDetail;
import com.jiaai.cloud.user.entity.TUser;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 主播基础信息表
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title TAnchor.java
 * @since 2017/8/1
 */
@TableName("t_anchor")
public class TAnchor extends Model<TAnchor> {

    private static final long serialVersionUID = 1L;
	@TableId(value = "anchorId",type= IdType.INPUT)
	private String anchorId;
    /**
     * 公告
     */
	private String notice;
	/**
	 * 粉丝徽章
	 */
	private  String fansBadge;
	/**
	 * 徽章修改时间
	 */
	@JSONField(serialize = false)
	private Date badgeTime;
	/**
	 * 标题
	 */
	private String title;
    /**
     * 用户Id
     */
    @JSONField(serialize = false)
	private String userId;
    /**
     * 0审核  1正常  2禁播
     */
	private Integer status;
	/**
	 * 0审核  1正常  2禁播
	 */
	@TableField(exist = false)
	private Integer online;

	@TableField(exist = false)
	private Integer like;

	@TableField(exist = false)
	private Integer popularity;

	@TableField(exist = false)
	private Integer state;

	@TableField(exist = false)
	@JSONField(format = "YYYY-MM-dd")
	private Date startTime;

	@TableField(exist = false)
	@JSONField(format = "YYYY-MM-dd")
	private Date endTime;
	@TableField(exist = false)
	private String nickName;

	@TableField(exist = false)
	private Integer sex;
	@TableField(exist = false)
	private String city;
	@TableField(exist = false)
	private String avatar;
	@TableField(exist = false)
	private String signature;
    /**
     * 创建时间
     */
	@JSONField(format = "YYYY-MM-dd")
	private Date time;

	public String getCity() {
		return city;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getOnline() {
		return online;
	}

	public void setOnline(Integer online) {
		this.online = online;
	}

	public Integer getLike() {
		return like;
	}

	public void setLike(Integer like) {
		this.like = like;
	}

	public Integer getPopularity() {
		return popularity;
	}

	public void setPopularity(Integer popularity) {
		this.popularity = popularity;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@TableField(exist = false)
	private List<TUser> userList;

	@TableField(exist = false)
	private List<TLiveBroadcast> broadcastList;

	@TableField(exist = false)
	private List<TLiveGiftDetail> liveGiftDetailList;

	public List<TLiveGiftDetail> getLiveGiftDetailList() {
		return liveGiftDetailList;
	}

	public void setLiveGiftDetailList(List<TLiveGiftDetail> liveGiftDetailList) {
		this.liveGiftDetailList = liveGiftDetailList;
	}

	public List<TLiveBroadcast> getBroadcastList() {
		return broadcastList;
	}

	public void setBroadcastList(List<TLiveBroadcast> broadcastList) {
		this.broadcastList = broadcastList;
	}

	public List<TUser> getUserList() {
		return userList;
	}

	public void setUserList(List<TUser> userList) {
		this.userList = userList;
	}

	public String getAnchorId() {
		return anchorId;
	}

	public void setAnchorId(String anchorId) {
		this.anchorId = anchorId;
	}

	public String getNotice() {
		return notice;
	}

	public void setNotice(String notice) {
		this.notice = notice;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getFansBadge() {
		return fansBadge;
	}

	public void setFansBadge(String fansBadge) {
		this.fansBadge = fansBadge;
	}

	public Date getBadgeTime() {
		return badgeTime;
	}

	public void setBadgeTime(Date badgeTime) {
		this.badgeTime = badgeTime;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	protected Serializable pkVal() {
		return this.anchorId;
	}

}
